package com.ln.sms.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SmsConfig {

	public static String sn;
	public static String pwd;
	public static String md5SnPwd;

	static {
		InputStream in = SmsConfig.class.getResourceAsStream("/sms-config.properties");
		Properties p = new Properties();
		try {
			p.load(in);
			sn = p.getProperty("sn").trim();
			pwd = p.getProperty("pwd").trim();
			md5SnPwd = EncryptUtils.encryptMD5(sn + pwd);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	
	public static void main(String[] args) {
		System.out.println(SmsConfig.md5SnPwd);
	}
}
